package com.dragon.speech.service;

import java.util.List;

/**
 * Created by jingcai.li on 2017/6/29.
 */
public interface SpeechService {
    /**
     * 通过语音文件名称，返回对应的text文本
     * @param data
     * @param fileName
     * @return
     */
    List<String> speechToText(byte[] data, String fileName)throws Exception;

    /**
     * 输入文件，返回对应的音频路径
     * @param text
     * @return
     */
    String textToSpeech(String text);
}
